package com.hengyue.system.mapstruct.mapper;

import com.hengyue.common.core.mapper.BaseMapper;
import com.hengyue.system.domain.entity.SysRole;
import com.hengyue.system.mapstruct.dto.SysRoleDto;
import org.mapstruct.*;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE, componentModel = MappingConstants.ComponentModel.SPRING)
public interface SysRoleMapper extends BaseMapper<SysRoleDto, SysRole> {
    @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
    SysRole partialUpdate(SysRoleDto sysRoleDto, @MappingTarget SysRole sysRole);
}